package com.itsc.service.inter;

import java.util.List;

import com.itsc.entities.CenterImageDes;
import com.itsc.util.page.Page;

public interface ICenterImageDesService {

	/**
	 * 增加
	 */
	public void save(CenterImageDes centerImageDes);
	
	/**
	 * 删除
	 */
	public void delete(CenterImageDes centerImageDes);
	
	/**
	 * 根据id查找
	 * @param id
	 * @return
	 */
	public CenterImageDes selectById(Integer id);
	
	/**
	 * 修改
	 * @param role
	 */
	public void update(CenterImageDes centerImageDes);
	
	/**
	 * 查找全部
	 * @return
	 */
	public List<CenterImageDes> selectAll();
	/**
	 * 分页
	 * @return
	 */
	public List<CenterImageDes> getPage(Page page);
	/**
	 * 查询记录总数
	 * @return
	 */
	public int getCount();
	/**
	 * 根据名称查询记录总数
	 * @param searchname
	 * @return
	 */
	public int getCount(String searchname);
	/**
	 * 分页查询
	 * @param searchname
	 * @param page
	 * @return
	 */
	public List<CenterImageDes> search(String searchname, Page page);
	/**
	 * 根据名称查找
	 * @param name
	 * @return
	 */
	public Boolean checkDepartment(String name);
	
	/**
	 * 根据名称查id
	 * @param name
	 * @return
	 */
	public Integer checkIdByDepartment(String name);
}
